/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //获取
  router.get('/order', controller.order.getData);
  //添加
  router.post('/order', controller.order.addDataItem);
  //修改
  router.put('/order', controller.order.editItem);
  //删除
  router.delete('/order', controller.order.delItem);
};
